import { useI18n } from 'vue-i18n'
export function useMock() {
  const { t } = useI18n()
  const selectVendorList = [
    {
      fieldCode: 'quotaTypeName',
      fieldName: '指标类别',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaTypeWeight',
      fieldName: '指标类别权重（%）',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'kpiQuotName',
      fieldName: '指标名称',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaWeight',
      fieldName: '指标权重（%）',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'scoreCriteria',
      fieldName: '评分标准',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaScore',
      fieldName: '分值',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'scoringTypeCn',
      fieldName: '打分方式',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    }
  ]

  const scoringColumnList = [
    {
      fieldCode: 'kpiQuotaTypeName',
      fieldName: '指标类别',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaTypeWeight',
      fieldName: '指标类别权重（%）',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'name',
      fieldName: '指标名称',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaWeight',
      fieldName: '指标权重（%）',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'scoreCriteria',
      fieldName: '评分标准',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaScore',
      fieldName: '分值',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'scoringTypeCn',
      fieldName: '打分方式',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaResult',
      fieldName: '指标结果',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'empName',
      fieldName: '评分人',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'weight',
      fieldName: '评分人权重(%)',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'primaryScore',
      fieldName: '评分',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'countScore',
      fieldName: '得分',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'scoreExplain',
      fieldName: '评分说明',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    }
  ]

  // 规则
  const selectRateRule = [
    {
      fieldName: '供应商等级',
      fieldCode: 'kpiLevelName',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldName: '分数起（≥）',
      fieldCode: 'numberStart',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldName: '分数止（<）',
      fieldCode: 'numberEnd',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true,
      prompt: '[特殊说明: 最后一行包含边界值，即<=]'
    }
  ]
  // 评分小组
  const reviewPanelList = [
    {
      fieldCode: 'reviewTeamName',
      fieldName: '小组名称',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'empName',
      fieldName: '评分人',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'weight',
      fieldName: '评分人权重（%）',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'quotaIds',
      fieldName: '适用指标范围',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'vendorIds',
      fieldName: '适用供应商范围',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    }
  ]

  const selectTemplatecolumn = [
    {
      fieldCode: 'select',
      fieldName: '',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      presetFlag: true,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE'],
      width: '45px'
    },
    {
      fieldCode: 'templateCode',
      fieldName: '模版编码',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      presetFlag: true, // 必须添加预制字段
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'templateName',
      fieldName: '模版名称',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      presetFlag: true,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'createdEmpName',
      fieldName: '创建人',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      presetFlag: true,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    }
  ]

  const asessmentDetailColumn = [
    {
      customName: '指标类别',
      fieldName: '指标类别',
      fieldCode: 'quotaTypeName',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      customName: '指标类别权重（%）',
      fieldName: '指标类别权重（%）',
      fieldCode: 'quotaTypeWeight',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '指标名称',
      fieldName: '指标名称',
      fieldCode: 'quotName',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '指标权重（%）',
      fieldName: '指标权重（%）',
      fieldCode: 'quotaWeight',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '评分标准',
      fieldName: '评分标准',
      fieldCode: 'scoreCriteria',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '分值',
      fieldName: '分值',
      fieldCode: 'quotaScore',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      customName: '打分方式',
      fieldName: '打分方式',
      fieldCode: 'scoringTypeCn',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '指标结果',
      fieldName: '指标结果',
      fieldCode: 'quotaResult',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '得分',
      fieldName: '得分',
      fieldCode: 'primaryScore',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '评分说明',
      fieldName: '评分说明',
      fieldCode: 'scoreExplain',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    }
  ]
  const detailVendorList = [
    {
      customName: '供应商编码',
      fieldCode: 'vendorCode',
      fieldName: '供应商编码',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldCode: 'vendorName',
      customName: '供应商名称',
      fieldName: '供应商名称',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldCode: 'purchaseCategoryCn',
      customName: '采购品类',
      fieldName: '采购品类',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldCode: 'summaryScore',
      fieldName: '汇总得分',
      customName: '汇总得分',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldCode: 'finalGradeRuleContentName',
      fieldName: '最终评级',
      customName: '最终评级',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      fieldCode: 'remark',
      fieldName: '备注',
      customName: '备注',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    }
  ]

  const levelColumn = [
    {
      customName: '等级规则编号',
      fieldName: '等级规则编号',
      fieldCode: 'code',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
    {
      customName: '等级规则名称',
      fieldName: '等级规则名称',
      fieldCode: 'name',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },

    {
      customName: '等级数据类型',
      fieldName: '等级数据类型',
      fieldCode: 'levelDataTypeCn',
      displayPage: 'NEW_PAGE,MODIFY_PAGE,DETAIL_PAGE',
      fieldTypeCode: 'TEXT',
      presetFlag: true,
      displayFlag: true
    },
  ]

  const reviewTeamList = [
    {
      fieldCode: 'reviewName',
      fieldName: '评审小组名称',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'empName',
      fieldName: '评审小组成员',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'deptNameList',
      fieldName: '部门',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    }
  ]

  const inspectColumnList = [
    {
      fieldCode: 'resultName',
      fieldName: t('keys.Survey_result_configuration'),
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE', 'DETAIL_PAGE']
    },
    {
      fieldCode: 'numberStart',
      fieldName: t('keys.Survey_score') + '>=',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE', 'DETAIL_PAGE'],
      displayFlag: true
    },
    {
      fieldCode: 'numberEnd',
      fieldName: t('keys.Survey_score') + '<',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    }
  ]

  const accessColumnList = [
    {
      fieldCode: 'resultName',
      fieldName: t('keys.Access_result_configuration'),
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE']
    },
    {
      fieldCode: 'numberStart',
      fieldName: t('keys.Evaluation_score') + '>=',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE', 'DETAIL_PAGE'],
      displayFlag: true
    },
    {
      fieldCode: 'numberEnd',
      fieldName: t('keys.Evaluation_score') + '<',
      visableFlag: true,
      visableReadonlyFlag: false,
      filterFlag: true,
      filterReadonlyFlag: false,
      exportFlag: true,
      exportReadonlyFlag: false,
      displayPage: ['NEW_PAGE', 'MODIFY_PAGE', 'CHANGE_PAGE', 'DETAIL_PAGE']
    }
  ]

  return {
    selectVendorList,
    selectRateRule,
    reviewPanelList,
    selectTemplatecolumn,
    scoringColumnList,
    asessmentDetailColumn,
    detailVendorList,
    levelColumn,
    reviewTeamList,
    inspectColumnList,
    accessColumnList
  }
}
